package ru.st.selenium.pages;

import static org.openqa.selenium.support.ui.ExpectedConditions.*;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;

import ru.st.selenium.applogic.FilmHelper;


public class FilmPage extends InternalPage {

	public FilmPage(PageManager pages) {
		super(pages);
	}
	
  
  
  @FindBy(css = "img[alt=\"Remove\"]")
  private WebElement deleteLink; 
  
  
  public void clickdeleteLink() {
	    deleteLink.click();
	    wait.until(alertIsPresent()).accept();
	    pages.internalPage.waitPresence(By.id("results"));
	   
  }

 

public void openPage() {
	// TODO Auto-generated method stub
	pages.internalPage.waitPresence(By.className("maininfo_full"));
}

  
}